package cn.zero.flowspringbootstater.utils.function;

import java.util.function.Supplier;

/**
 * @author lei
 * @date 2022-10-20 09:35
 */
@FunctionalInterface
public interface ThrowExceptionHandler<X extends Throwable> {

    /**
     * 抛出异常信息
     * @param msg
     * @return void
     * @author lei
     */

     void orElseThrow(Supplier<? extends X> msg) throws X;
}
